home *** CD-ROM | disk | FTP | other *** search
/ The Programmer Disk / The Programmer Disk (Microforum).iso / xpro / extra / pro13 / vpaint.c < prev    next >
C/C++ Source or Header  |  1993-02-01  |  390b  |  29 lines

  1. /*
  2.     vpaint.C
  3.  
  4.     Copyright (C) 1993, Geoff Friesen B.Sc.
  5.     All rights reserved.
  6. */
  7.  
  8. #define    INCL_VPAINT
  9.  
  10. #ifndef    INCL_VGOTOXY
  11. #include "vgotoxy.C"
  12. #endif
  13.  
  14. #ifndef    INCL_VPUTCH
  15. #include "vputch.C"
  16. #endif
  17.  
  18. void v_paint (int c, int x, int y, int nx, int ny)
  19. {
  20.    int i;
  21.  
  22.    for (i = 0; i < ny; i++)
  23.    {
  24.     v_gotoxy (x, y+i);
  25.     v_putch (c, nx);
  26.    }
  27.  
  28.    v_gotoxy (x, y);
  29. }